﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonEdit.aspx.cs" Inherits="SpringSeries.Core.ValidationWebForm.PersonEdit" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Spring.NET Validation Framework Test</title>
    <style type="text/css">
        .validationError
        {
	        font-size: 80%;
	        color: #DC143C;
        }
    </style>
</head>
<body>
    <h1>Spring.NET Validation Framework Test</h1>
    <form id="form1" runat="server">
    <table>
        <tr><td><asp:Label ID="Label1" runat="server" Text="First Name:"></asp:Label></td>
            <td>
                <asp:TextBox  ID="txtFirstname" runat="server"></asp:TextBox>        
                <spring:ValidationError id="FirstNameMessage" runat="server" />
            </td></tr>
        <tr><td><asp:Label ID="Label2" runat="server" Text="Last Name:"></asp:Label></td>
            <td>
                <asp:TextBox  ID="txtLastName" runat="server"></asp:TextBox>        
            </td></tr>
        <tr><td><asp:Label ID="Label3" runat="server" Text="Date Of Birth:"></asp:Label></td>
            <td>
                <asp:Calendar ID="clDateOfBirth" runat="server" ></asp:Calendar>
                <spring:ValidationError id="DateOfBirthMessage" runat="server" />
            </td></tr>
        <tr><td><asp:Label ID="Label4" runat="server" Text="Address:"></asp:Label></td>
            <td>
                <asp:TextBox  ID="txtAddress" runat="server"></asp:TextBox>        
            </td></tr>
        <tr><td><asp:Label ID="Label5" runat="server" Text="City:"></asp:Label></td>
            <td>
                <asp:TextBox  ID="txtCity" runat="server"></asp:TextBox>
                <spring:ValidationError id="CityMessage" runat="server" />        
            </td></tr>
        <tr><td><asp:Label ID="Label6" runat="server" Text="PostalCode:"></asp:Label></td>
            <td>
                <asp:TextBox  ID="txtPostalCode" runat="server"></asp:TextBox>        
                <spring:ValidationError id="PostalCodeMessage" runat="server" />
            </td></tr>   
        <tr><td></td>
            <td>
                <spring:ValidationSummary ID="validationSummary" runat="server" />
            </td></tr>  
        <tr><td></td>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
            </td></tr>   
    </table>        
    </form>
</body>
</html>
